package com.easyaop.test.core.around.demo2;

import java.util.function.Function;

public class A4_lambda2_x {
    public static String x0(A4 a, String str) {
        System.out.println("x(): this.name:" + a.name + " , arg0:" + str);
        return "x";
    }

    public static String x1(A4 a, String str) {
        return (String) Around1.execute(
                (Function<Object[], Object>) (args) -> x0(a, (String) args[0])
                , new Object[]{str});

    }

    public static String x2(A4 a, String str) {
        return (String) Around2.execute(
                (Function<Object[], Object>) (args) -> x1(a, (String) args[0])
                , new Object[]{str});

    }
}
